# MCPy 基础使用示例的 meson.build

code_gen = generator(
    python3,
    output: ['@BASENAME@.cpp'],
    arguments: [
        '-m', 'mcpy.cli',
        '@INPUT@',
        '-o', '@BUILD_DIR@',
        '--header-output', meson.current_build_dir(),
        '--source-root', meson.current_source_dir(),
        '--format', get_option('format').to_string(),
        '--strict-typing', get_option('strict_typing').to_string(),
    ],
)
inc_dir = include_directories('.')

subdir('str_format')

py_sources = files('main.py', 'precise_types.py')
executable(
    'basic_usage',
    code_gen.process(py_sources),
    include_directories: inc_dir,
    dependencies: [mcpy_dep, gtest_dep, str_format_dep],
    install: false,
)